package com.situ.mall.service;

import com.situ.mall.pojo.entity.Coupon;

import java.util.List;

public interface ICouponService {
    void add(Coupon coupon);

    List<Coupon> selectByUserId(Integer userId);

    Coupon selectById(Integer id);

    void updateCoupon(Coupon coupon);

    List<Coupon> couponListSelectByUserId(Integer userId);

    List<Coupon> selectByUserIdNowBuy(Integer userId, Integer productId, Integer quantity);
}
